<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/sks/cms/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="districtJavaScript.jsp" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String menuName = request.getParameter("menuName") == null
			? ""
			: (String) request.getParameter("menuName");
	boolean isCollected = (Boolean) request.getAttribute("isCollected") != null ? (Boolean) request.getAttribute("isCollected") : false;
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="租房,买房,三棵松,地产,中介" />
<meta name="description" content="三棵松地产" />
<title>三棵松地产</title>
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/common.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/BrightSide.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/mytestcss.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/frontpages/district/district.css" />
<script type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>sks/js/frontpages/jquery.cookie.js"></script>
<link type="text/css" href="<%=basePath%>map/css/map.css" rev="stylesheet" rel="stylesheet">
<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.2"></script> 
<script type="text/javascript" src="<%=basePath%>map/js/simpleMap.js"></script>
</head>
<body onload="javascript:changeMenu('<%=menuName%>');">
	<div class="wrap">
		<jsp:include page="../header.jsp"></jsp:include>
		<div class="nav-line">
			<a href="<%=basePath%>">SKS房地产</a> &gt; <a
				href="<%=basePath%>sks/district.do?method=list&menuName=village">
				小区</a> &gt; ${building.name }
		</div>
		<div id="clear"></div>
		<!-- header -->
		<div class="bc standw">
			<!--切换标签 star-->
			<div class="sxq_xqheadtab clearfix">
				<div class="tab_menu">
					<div class="menu">
						<a
							href="<%=basePath%>sks/districtInfo.do?method=base&menuName=village&buildingId=${building.buildingId }">小区概况<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=photo&menuName=village&buildingId=${building.buildingId }">小区照片<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=map&menuName=village&buildingId=${building.buildingId }"
							class="on">小区地图<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=houseSaleList&menuName=village&buildingId=${building.buildingId }&isRent=Buy">出售房源<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=houseRentList&menuName=village&buildingId=${building.buildingId }">出租房源<span></span>
						</a> <a
							href="<%=basePath%>sks/districtInfo.do?method=detail&menuName=village&buildingId=${building.buildingId }">周边配套<span></span>
						</a>
					</div>
					<div style="clear: both;" ></div>
					<a href="javascript:void(0);" id="collectDistrict"
						onclick="<%= isCollected ? "del_attentioncommunity()" : "add_attentioncommunity()"%>"
						class="sc_link""><%= isCollected ? "取消收藏" : "收藏小区"%></a>
				</div>
			</div>
			<input id="buildingId" type="hidden" value=${building.buildingId }>
			<div class="mapContainer" id="container" align="center"
				style="width: 900px; height: 450px; border: #ccc solid 1px; margin-top: 10px; margin-bottom: 10px; margin-left: 30px">
			</div>

			<script type="text/javascript">
				var name = '${building.name}';
				var lng = '${building.lng}';
				var lat = '${building.lat}';
				var str = lng + '|' + lat;
				var data = {
					name : name,
					point : str
				};
				initMap(data);
			</script>
			<div class="tranInfo">

				<h3 class="h3Title">小区地址</h3>

				<div class="content borderBot">

					地址：
					<c:if test=" ${building.address == null}">-</c:if>
					${building.address }<br />
				</div>

				<h3 class="h3Title">周边配套</h3>

				<div class="content">
					地铁：${building.metroStation.metroByMetroId.name }<br />

					教育：${building.educate } <br /> 医疗：${building.medical } <br />

					饮食：${building.repast } <br />

				</div>

				<div class="linkBlue2">
					<a
						href="<%=basePath%>sks/districtInfo.do?method=detail&menuName=village&buildingId=${building.buildingId }"
						class="icoTrianglR">查看详细配套信息</a>
				</div>

			</div>

		</div>
		<div id="clear"></div>
		<div class="blank10"></div>
		<!-- footer starts here -->
		<jsp:include page="../rooster.jsp"></jsp:include>
	</div>
</body>
</html>